import 'package:json_annotation/json_annotation.dart';

part 'base_res.g.dart';

@JsonSerializable()
class BaseRes {
  final int code;
  final String message;

  BaseRes(this.code, this.message);

  factory BaseRes.fromJson(Map<String, dynamic> json) =>
      _$BaseResFromJson(json);

  Map<String, dynamic> toJson() => _$BaseResToJson(this);
}